package com.epam.qanda.db.model;

import java.io.Serializable;
import java.sql.Timestamp;

import com.epam.qanda.db.annotaion.DBFieldName;

public class Message implements Serializable {
	private static final long serialVersionUID = 1L;

	@DBFieldName("id")
	private Integer id;
	@DBFieldName("user_id")
	private Integer userId;
	@DBFieldName("text")
	private String text;
	@DBFieldName("checked")
	private Boolean checked=false;
	@DBFieldName("time")
	private Timestamp time;
	@DBFieldName("user_login")
	private String userLogin;
	
	
	
	public String getUserLogin() {
		return userLogin;
	}

	public void setUserLogin(String userLogin) {
		this.userLogin = userLogin;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "Message [id=" + id + ", userId=" + userId + ", text=" + text + ", checked="
				+ checked + ", time=" + time + "]";
	}

}
